package ynu.edu.online_course.service;

import ynu.edu.online_course.entity.Comment;

import java.util.List;

public interface CommentService {
    void addComment(Comment comment);
    List<Comment> getCommentsByCourseId(Long courseId);
    boolean canUserDeleteComment(Long commentId, Long userId);
    void deleteComment(Long commentId, Long userId);

}
